Skip to content

feat: support install.nodejs()#2059

Merged
kemingy merged 2 commits intotensorchord:mainfrom
kemingy:nodejs
Nov 8, 2025
Merged

feat: support install.nodejs()#2059
kemingy merged 2 commits intotensorchord:mainfrom
kemingy:nodejs

Conversation

@kemingy
Copy link
Copy Markdown
Member

@kemingy kemingy commented Nov 8, 2025

With python/nodejs, we should be able to install most of the code agents with the language package managers.

Signed-off-by: Keming <kemingyang@tensorchord.ai>
Signed-off-by: Keming <kemingyang@tensorchord.ai>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds NodeJS programming language support to envd, enabling users to install and use Node.js in their development environments via install.nodejs().

Key Changes:

  • Implemented NodeJS installation functionality with configurable version support (default: 25.1.0)
  • Added libatomic1 system package dependency required by nodejs
  • Consolidated separate rust and golang e2e tests into a unified "others" test suite that includes nodejs

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/types/envd.go Added libatomic1 to base apt packages for nodejs runtime dependency
pkg/lang/ir/v1/system.go Integrated nodejs case handlers in language compilation logic
pkg/lang/ir/v1/nodejs.go New file implementing nodejs installation from official release binaries
pkg/lang/ir/v1/interface.go Added NodeJS() function to expose nodejs installation in IR API
pkg/lang/frontend/starlark/v1/install/install.go Added starlark binding for install.nodejs() with version parameter
pkg/lang/frontend/starlark/v1/install/const.go Added ruleNodeJS constant for the install rule
envd/api/v1/install.py Added Python API documentation for nodejs() function
e2e/language/testdata/rust/build.envd Removed rust-specific test configuration (consolidated into others)
e2e/language/testdata/others/build.envd New consolidated test configuration for go, rust, and nodejs
e2e/language/testdata/golang/build.envd Removed golang-specific test configuration (consolidated into others)
e2e/language/others_test.go Updated to test go, rust, and nodejs installation in single suite
Comments suppressed due to low confidence (1)

e2e/language/others_test.go:24

  • The test suite description still says "rust" but now tests multiple languages (rust/golang/nodejs). This should be updated to reflect the broader scope, such as "other languages" or "rust/golang/nodejs".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kemingy kemingy merged commit d012d9f into tensorchord:main Nov 8, 2025
19 checks passed
@kemingy kemingy deleted the nodejs branch November 8, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants